import axios from '../axios'

export default {
    getSalesMen () {
        return axios({
            url: '/salesMen/getSalesMen',
            method: 'get',
        })
    },
    addSalesMen (data) {
        return axios({
            url: '/salesMen/addSalesMen',
            method: "post",
            data
        })
    },
    delSalesMen (data) {
        return axios({
            url: '/salesMen/delSalesMen',
            method: 'post',
            data
        })
    },
    getSalesMenById (params) {
        // console.log(111,params)
        return axios({
            url: '/salesMen/getSalesMenById',
            method: 'get',
            params: {
                _id: params
            }
        })
    },
    updateSalesMen (data) {
        return axios({
            url: '/salesMen/updateSalesMen',
            method: 'post',
            data
        })
    }

}
